/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controller;

import da.AccountJpaController;
import entities.Account;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.Persistence;
import javax.persistence.TypedQuery;

/**
 *
 * @author QUY_THI
 */
@Stateless
public class AccountDetail implements AccountDetailRemote, AccountDetailLocal {

    public Account accountDetail(String accountCode) {
        AccountJpaController control=new AccountJpaController();
        Account findAccount = control.findAccount(accountCode);
        return findAccount ;
    }
    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")
}
